package com.Eastiy.EXO.Menu;

import android.content.Context;
import android.view.View;
import android.widget.Toast;
import com.Eastiy.EXO.Load;
import com.Eastiy.EXO.View.NewView;
import com.Eastiy.EXO.View.NewWindow;
import com.Eastiy.EXO.View.Tostbut;

public class REFM {
    private static NewWindow REFMcdv;
    /* access modifiers changed from: private */
    public static boolean aim = false;
    /* access modifiers changed from: private */
    public static boolean aim1 = false;
    /* access modifiers changed from: private */
    public static boolean aim10 = false;
    /* access modifiers changed from: private */
    public static boolean aim11 = false;
    /* access modifiers changed from: private */
    public static boolean aim12 = false;
    /* access modifiers changed from: private */
    public static boolean aim13 = false;
    /* access modifiers changed from: private */
    public static boolean aim14 = false;
    /* access modifiers changed from: private */
    public static boolean aim15 = false;
    /* access modifiers changed from: private */
    public static boolean aim16 = false;
    /* access modifiers changed from: private */
    public static boolean aim17 = false;
    /* access modifiers changed from: private */
    public static boolean aim18 = false;
    /* access modifiers changed from: private */
    public static boolean aim19 = false;
    /* access modifiers changed from: private */
    public static boolean aim20 = false;
    /* access modifiers changed from: private */
    public static boolean aim21 = false;
    /* access modifiers changed from: private */
    public static boolean aim22 = false;
    /* access modifiers changed from: private */
    public static boolean aim23 = false;
    /* access modifiers changed from: private */
    public static boolean aim24 = false;
    /* access modifiers changed from: private */
    public static boolean aim25 = false;
    /* access modifiers changed from: private */
    public static boolean aim26 = false;
    /* access modifiers changed from: private */
    public static boolean aim27 = false;
    /* access modifiers changed from: private */
    public static boolean aim28 = false;
    /* access modifiers changed from: private */
    public static boolean aim29 = false;
    /* access modifiers changed from: private */
    public static boolean aim3 = false;
    /* access modifiers changed from: private */
    public static boolean aim30 = false;
    /* access modifiers changed from: private */
    public static boolean aim31 = false;
    /* access modifiers changed from: private */
    public static boolean aim32 = false;
    /* access modifiers changed from: private */
    public static boolean aim33 = false;
    /* access modifiers changed from: private */
    public static boolean aim34 = false;
    /* access modifiers changed from: private */
    public static boolean aim4 = false;
    /* access modifiers changed from: private */
    public static boolean aim5 = false;
    /* access modifiers changed from: private */
    public static boolean aim6 = false;
    /* access modifiers changed from: private */
    public static boolean aim7 = false;
    /* access modifiers changed from: private */
    public static boolean aim8 = false;
    /* access modifiers changed from: private */
    public static boolean aim9 = false;
    private static NewView but;
    public static Context context;
    private static NewView pul;

    /* renamed from: 锁定 */
    private static boolean f30 = false;

    /* renamed from: H */
    public static int m12H() {
        return context.getResources().getDisplayMetrics().heightPixels;
    }

    /* renamed from: W */
    public static int m13W() {
        return context.getResources().getDisplayMetrics().widthPixels;
    }

    public static void dis() {
        if (REFMcdv != null) {
            NewWindow.dis();
            REFMcdv = null;
        }
    }

    public static void show(Context context2, boolean z) {
        context = context2;
        pul = new NewView(context2, (Object) null, (Object) null, "CT", new Integer(1), 2, (Object) null, (Object) null, (View.OnClickListener) null);
        but = new NewView(context2, new Integer(-2), new Integer(-2), "LC", new Integer(1), 2, (Object) null, (Object) null, (View.OnClickListener) null);
        new Tostbut(context2, but, 1, "添加保护", "</b><b>手持物品添加保护附魔属性", aim, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim) {
                    Load.addEnchant(0, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim = true;
                } else if (REFM.aim) {
                    Load.addEnchant(0, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加火焰保护", "</b><b>手持物品添加火焰保护附魔属性", aim1, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim1) {
                    Load.addEnchant(1, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim1 = true;
                } else if (REFM.aim1) {
                    Load.addEnchant(1, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim1 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加摔落保护", "</b><b>手持物品添加爆炸保护附魔属性", aim4, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim4) {
                    Load.addEnchant(2, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim4 = true;
                } else if (REFM.aim4) {
                    Load.addEnchant(2, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim4 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加爆炸保护", "</b><b>手持物品添加爆炸保护附魔属性", aim5, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim5) {
                    Load.addEnchant(3, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim5 = true;
                } else if (REFM.aim5) {
                    Load.addEnchant(3, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim5 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加弹射物保护", "</b><b>手持物品添加弹射物保护附魔属性", aim3, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim3) {
                    Load.addEnchant(4, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim3 = true;
                } else if (REFM.aim3) {
                    Load.addEnchant(4, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim3 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加荆棘", "</b><b>手持物品添加荆棘附魔属性", aim6, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim6) {
                    Load.addEnchant(5, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim6 = true;
                } else if (REFM.aim6) {
                    Load.addEnchant(5, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim6 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加水下呼吸", "</b><b>手持物品添加水下呼吸附魔属性", aim7, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim7) {
                    Load.addEnchant(6, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim7 = true;
                } else if (REFM.aim7) {
                    Load.addEnchant(6, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim7 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加深海探索者", "</b><b>手持物品添加深海探索者附魔属性", aim8, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim8) {
                    Load.addEnchant(7, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim8 = true;
                } else if (REFM.aim8) {
                    Load.addEnchant(7, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim8 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加水下速掘", "</b><b>手持物品添加水下速掘附魔属性", aim9, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim9) {
                    Load.addEnchant(8, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim9 = true;
                } else if (REFM.aim9) {
                    Load.addEnchant(8, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim9 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加锋利", "</b><b>手持物品添加锋利附魔属性", aim10, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim10) {
                    Load.addEnchant(9, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim10 = true;
                } else if (REFM.aim10) {
                    Load.addEnchant(9, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim10 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加亡灵克星", "</b><b>手持物品添加亡灵克星附魔属性", aim11, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim11) {
                    Load.addEnchant(10, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim11 = true;
                } else if (REFM.aim11) {
                    Load.addEnchant(10, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim11 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加节肢克星", "</b><b>手持物品添加节肢克星附魔属性", aim12, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim12) {
                    Load.addEnchant(11, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim12 = true;
                } else if (REFM.aim12) {
                    Load.addEnchant(11, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim12 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加击退", "</b><b>手持物品添加击退附魔属性", aim13, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim13) {
                    Load.addEnchant(12, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim13 = true;
                } else if (REFM.aim13) {
                    Load.addEnchant(12, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim13 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加火焰附加", "</b><b>手持物品添加火焰附加附魔属性", aim14, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim14) {
                    Load.addEnchant(13, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim14 = true;
                } else if (REFM.aim14) {
                    Load.addEnchant(13, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim14 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加抢夺", "</b><b>手持物品添加抢夺附魔属性", aim15, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim15) {
                    Load.addEnchant(14, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim15 = true;
                } else if (REFM.aim15) {
                    Load.addEnchant(14, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim15 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加效率", "</b><b>手持物品添加效率附魔属性", aim16, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim16) {
                    Load.addEnchant(15, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim16 = true;
                } else if (REFM.aim16) {
                    Load.addEnchant(15, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim16 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加精准采集", "</b><b>手持物品添加精准采集附魔属性", aim17, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim17) {
                    Load.addEnchant(16, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim17 = true;
                } else if (REFM.aim17) {
                    Load.addEnchant(16, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim17 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加耐久", "</b><b>手持物品添加耐久附魔属性", aim18, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim18) {
                    Load.addEnchant(17, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim18 = true;
                } else if (REFM.aim18) {
                    Load.addEnchant(17, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim18 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加时运", "</b><b>手持物品添加时运附魔属性", aim19, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim19) {
                    Load.addEnchant(18, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim19 = true;
                } else if (REFM.aim19) {
                    Load.addEnchant(18, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim19 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加力量", "</b><b>手持物品添加力量附魔属性", aim20, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim20) {
                    Load.addEnchant(19, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim20 = true;
                } else if (REFM.aim20) {
                    Load.addEnchant(19, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim20 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加冲击", "</b><b>手持物品添加冲击附魔属性", aim21, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim21) {
                    Load.addEnchant(20, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim21 = true;
                } else if (REFM.aim21) {
                    Load.addEnchant(20, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim21 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加火矢", "</b><b>手持物品添加火矢附魔属性", aim22, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim22) {
                    Load.addEnchant(21, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim22 = true;
                } else if (REFM.aim22) {
                    Load.addEnchant(21, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim22 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加无限", "</b><b>手持物品添加无限附魔属性", aim23, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim23) {
                    Load.addEnchant(22, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim23 = true;
                } else if (REFM.aim23) {
                    Load.addEnchant(22, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim23 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加海之眷顾", "</b><b>手持物品添加海之眷顾附魔属性", aim24, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim24) {
                    Load.addEnchant(23, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim24 = true;
                } else if (REFM.aim24) {
                    Load.addEnchant(23, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim24 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加饵钓", "</b><b>手持物品添加饵钓附魔属性", aim25, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim25) {
                    Load.addEnchant(24, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim25 = true;
                } else if (REFM.aim25) {
                    Load.addEnchant(24, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim25 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加冰霜行者", "</b><b>手持物品添加冰霜行者附魔属性", aim26, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim26) {
                    Load.addEnchant(25, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim26 = true;
                } else if (REFM.aim26) {
                    Load.addEnchant(25, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim26 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加经验修补", "</b><b>手持物品添加经验修补附魔属性", aim27, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim27) {
                    Load.addEnchant(26, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim27 = true;
                } else if (REFM.aim27) {
                    Load.addEnchant(26, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim27 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加穿刺", "</b><b>手持物品添加穿刺附魔属性", aim28, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim28) {
                    Load.addEnchant(29, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim28 = true;
                } else if (REFM.aim28) {
                    Load.addEnchant(29, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim28 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加激流", "</b><b>手持物品添加激流附魔属性", aim29, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim29) {
                    Load.addEnchant(30, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim29 = true;
                } else if (REFM.aim29) {
                    Load.addEnchant(30, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim29 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加忠诚", "</b><b>手持物品添加忠诚附魔属性", aim30, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim30) {
                    Load.addEnchant(31, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim30 = true;
                } else if (REFM.aim30) {
                    Load.addEnchant(31, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim30 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加引雷", "</b><b>手持物品添加引雷附魔属性", aim31, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim31) {
                    Load.addEnchant(32, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim31 = true;
                } else if (REFM.aim31) {
                    Load.addEnchant(32, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim31 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加多重箭", "</b><b>手持物品添加多重箭附魔属性", aim32, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim32) {
                    Load.addEnchant(33, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim32 = true;
                } else if (REFM.aim32) {
                    Load.addEnchant(33, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim32 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加穿透", "</b><b>手持物品添加穿透附魔属性", aim33, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim33) {
                    Load.addEnchant(34, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim33 = true;
                } else if (REFM.aim33) {
                    Load.addEnchant(34, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim33 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "添加快速填装", "</b><b>手持物品添加快速填装附魔属性", aim34, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!REFM.aim34) {
                    Load.addEnchant(35, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim34 = true;
                } else if (REFM.aim34) {
                    Load.addEnchant(35, 32767);
                    Toast.makeText(REFM.context, "附魔成功", 0).show();
                    REFM.aim34 = false;
                }
            }
        }, (Object) null);
        pul.addView(but);
        REFMcdv = new NewWindow(context2, pul, "附魔", z);
    }

    public void show() {
        REFMcdv.showAtLocation(pul, 17, (int) (((double) m13W()) * 0.05d), 0);
    }
}
